/*************************************************
Author: Aven 
Date: 12/27/2012
Description:
Notes: 
*************************************************/

#ifndef __cmddefend_h__
#define __cmddefend_h__

#include "../maindef.h"
#include "commclass.h"
#include "PBMsgHead.pb.h"

#include "MsgDailyTask.pb.h"

class CMainCtrl;
class CCmdGetDailyTask: public CTAsyncCmd
{
public:
    virtual int Do(void* pData);
    virtual int AnsClients(int iRet);
    virtual int LogicDo(int iRet);

    CMainCtrl* pstMainCtrl;
    PBMsgHead  stMsgHead;
    CEnpNetHead stEnpHead;

    MsgReqGetDailyTask stReq;
    MsgAnsGetDailyTask stAns;

    unsigned int uiGID;
};

class CCmdFindYesterdayTask: public CTAsyncCmd
{
public:
    virtual int Do(void* pData);
    virtual int AnsClients(int iRet);
    virtual int LogicDo(int iRet);

    CMainCtrl* pstMainCtrl;
    PBMsgHead  stMsgHead;
    CEnpNetHead stEnpHead;

    MsgReqFindYesterdayTask stReq;
    MsgAnsFindYesterdayTask stAns;

    unsigned int uiGID;
};

class CCmdOpenTBox: public CTAsyncCmd
{
public:
    virtual int Do(void* pData);
    virtual int AnsClients(int iRet);
    virtual int LogicDo(int iRet);

    CMainCtrl* pstMainCtrl;
    PBMsgHead  stMsgHead;
    CEnpNetHead stEnpHead;

    MsgReqOpenTbox stReq;
    MsgAnsOpenTbox stAns;

    unsigned int uiGID;
};

#endif // __cmddefend_h__
